package com.egrid.point.bury.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Person.java
 * Created at 2021-04-25
 * Created by RoyalWarmer
 * Copyright (C) 2021  SHANGHAI VOLKSWAGEN, All rights reserved.
 */
@Data
@ApiModel("记录埋点实体类")
@Table(name = "TT_PERSON")
@Entity
public class Person implements Serializable {
    public Person(String name, Date age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private String id;

    @ApiModelProperty(value = "发起的时间戳")
    private String name;

    @ApiModelProperty(value = "事件类型,page，click，ajax 三种")
    private Date age;
}
